package chapter11;

import java.awt.*;

public class PanelTest {
    public static void main(String[] args) {
        Frame frame = new Frame("测试窗口");
        Panel p = new Panel();
        p.add(new TextField(20));
        p.add(new Button("单击我"));
        frame.add(p);
        frame.setBounds(30, 30, 250, 120);
        frame.setVisible(true);
    }
}
